package com.ruoyi.inventory.mapper;

import com.ruoyi.inventory.domain.TInventoryAllot;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 调拨Mapper接口
 * 
 * @author cy
 * @date 2024-10-28
 */
public interface TInventoryAllotMapper 
{
    /**
     * 查询调拨
     * 
     * @param id 调拨主键
     * @return 调拨
     */
    public TInventoryAllot selectTInventoryAllotById(Long id);

    /**
     * 查询调拨列表
     * 
     * @param tInventoryAllot 调拨
     * @return 调拨集合
     */
    public List<TInventoryAllot> selectTInventoryAllotList(TInventoryAllot tInventoryAllot);

    /**
     * 新增调拨
     * 
     * @param tInventoryAllot 调拨
     * @return 结果
     */
    public int insertTInventoryAllot(TInventoryAllot tInventoryAllot);

    /**
     * 修改调拨
     * 
     * @param tInventoryAllot 调拨
     * @return 结果
     */
    public int updateTInventoryAllot(TInventoryAllot tInventoryAllot);

    /**
     * 删除调拨
     * 
     * @param id 调拨主键
     * @return 结果
     */
    public int deleteTInventoryAllotById(Long id);

    /**
     * 撤销审批
     *
     * @param approveState 审批状态
     * @return 结果
     */
    public int upInventoryAllot(@Param("approveState") Integer approveState, @Param("allotState")  Integer allotState, @Param("document") String document);
}
